/**
 * C Programming: A Modern Approach
 *
 * version: 2nd
 * author: K.N.King
 * http://knking.com/books/c2
 */

#include <stdio.h>

/**
 *
 */

int main(void) {
    int month;
    int day;
    int year;

    printf("Enter a data (mm/dd/yy): ");
    scanf("%d/%d/%d", &month, &day, &year);

    printf("\nYou entered the date %d%.2d%d\n", year, month, day);

    return 0;
}

/*
output:
Enter a data (mm/dd/yy): 2/17/2011

You entered the date 20110217
*/